<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SimpleWindow: TextBoxBase.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SimpleWindow
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('_text_box_base_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">TextBoxBase.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &quot;Control.h&quot;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="keyword">namespace </span>sw</div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span>{</div>
<div class="foldopen" id="foldopen00010" data-start="{" data-end="};">
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html">   10</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classsw_1_1_text_box_base.html">TextBoxBase</a> : <span class="keyword">public</span> <a class="code hl_class" href="classsw_1_1_control.html">Control</a></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span>    {</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>        <span class="keywordtype">bool</span> _isTextChanged = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span>        <span class="keywordtype">bool</span> _acceptTab = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a77e44c645068eb384a5e77765fdccbae">   27</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_text_box_base.html#a77e44c645068eb384a5e77765fdccbae">ReadOnly</a>;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#abaa4c52632b7a8d2bdb41341fc1ab0e8">   32</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;sw::HorizontalAlignment&gt;</a> <a class="code hl_variable" href="classsw_1_1_text_box_base.html#abaa4c52632b7a8d2bdb41341fc1ab0e8">HorizontalContentAlignment</a>;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a63ae3c3e273a7a69d0f7ca07b102f64b">   37</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">ReadOnlyProperty&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_text_box_base.html#a63ae3c3e273a7a69d0f7ca07b102f64b">CanUndo</a>;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a91bad54640a2bdd486232d3836611608">   42</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_text_box_base.html#a91bad54640a2bdd486232d3836611608">AcceptTab</a>;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a67d628d8d0d746292ef4350ad1a5a84a">   48</a></span>        <a class="code hl_function" href="classsw_1_1_text_box_base.html#a67d628d8d0d746292ef4350ad1a5a84a">TextBoxBase</a>();</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a2fb455bb1ed2c1b3f3c12a82a5a4b720">   54</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#a2fb455bb1ed2c1b3f3c12a82a5a4b720">~TextBoxBase</a>() = 0;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a3a6843f34013ed31f3828263f0984233">   60</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#a3a6843f34013ed31f3828263f0984233">InitTextBoxBase</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">DWORD</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">dwStyle</a>, <a class="code hl_class" href="classsw_1_1_dictionary.html">DWORD</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">dwExStyle</a>);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a364003a9b7b601f385861108a4e3273e">   66</a></span>        <span class="keyword">virtual</span> std::wstring &amp;<a class="code hl_function" href="classsw_1_1_text_box_base.html#a364003a9b7b601f385861108a4e3273e">GetText</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a1e7210993dcbf6cfdaff3dcc3246dfd5">   72</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#a1e7210993dcbf6cfdaff3dcc3246dfd5">OnCommand</a>(<span class="keywordtype">int</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">code</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#aa88527cddd82fc158e0ac3ca662604c1">   80</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#aa88527cddd82fc158e0ac3ca662604c1">OnChar</a>(<span class="keywordtype">wchar_t</span> ch, <a class="code hl_struct" href="structsw_1_1_key_flags.html">KeyFlags</a> flags) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a83561e8ffe232f84c13dc14c941600f6">   88</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#a83561e8ffe232f84c13dc14c941600f6">OnKeyDown</a>(VirtualKey key, <a class="code hl_struct" href="structsw_1_1_key_flags.html">KeyFlags</a> flags) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a89b507ceef32d379c93a60b5989b74fe">   93</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#a89b507ceef32d379c93a60b5989b74fe">OnDrawFocusRect</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#aa22188dc026379eb3e76a2415b8bf0c9">  101</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#aa22188dc026379eb3e76a2415b8bf0c9">Select</a>(<span class="keywordtype">int</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">start</a>, <span class="keywordtype">int</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">length</a>);</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#aa1e5c56604dd112fb3f116d12c1603d4">  106</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#aa1e5c56604dd112fb3f116d12c1603d4">SelectAll</a>();</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a221765241d6ca76156d3564440306d51">  111</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#a221765241d6ca76156d3564440306d51">ScrollToCaret</a>();</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a7c7ccda9b5161642d002a88cab7da1c3">  117</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#a7c7ccda9b5161642d002a88cab7da1c3">Undo</a>();</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classsw_1_1_text_box_base.html#a9100aef79b476bac6f50933c7d73d5ee">  122</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_text_box_base.html#a9100aef79b476bac6f50933c7d73d5ee">Clear</a>();</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>    };</div>
</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>}</div>
<div class="ttc" id="aclasssw_1_1_control_html"><div class="ttname"><a href="classsw_1_1_control.html">sw::Control</a></div><div class="ttdoc">控件</div><div class="ttdef"><b>Definition</b> Control.h:11</div></div>
<div class="ttc" id="aclasssw_1_1_dictionary_html"><div class="ttname"><a href="classsw_1_1_dictionary.html">sw::Dictionary</a></div><div class="ttdoc">字典类，内部维护了一个指向std::map的智能指针</div><div class="ttdef"><b>Definition</b> Dictionary.h:24</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html"><div class="ttname"><a href="classsw_1_1_text_box_base.html">sw::TextBoxBase</a></div><div class="ttdoc">窗口类名为EDIT的控件类型的基类</div><div class="ttdef"><b>Definition</b> TextBoxBase.h:11</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a1e7210993dcbf6cfdaff3dcc3246dfd5"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a1e7210993dcbf6cfdaff3dcc3246dfd5">sw::TextBoxBase::OnCommand</a></div><div class="ttdeci">virtual void OnCommand(int code) override</div><div class="ttdoc">当父窗口接收到控件的WM_COMMAND时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a221765241d6ca76156d3564440306d51"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a221765241d6ca76156d3564440306d51">sw::TextBoxBase::ScrollToCaret</a></div><div class="ttdeci">void ScrollToCaret()</div><div class="ttdoc">将控件内容滚动到当前插入符号位置</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a2fb455bb1ed2c1b3f3c12a82a5a4b720"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a2fb455bb1ed2c1b3f3c12a82a5a4b720">sw::TextBoxBase::~TextBoxBase</a></div><div class="ttdeci">virtual ~TextBoxBase()=0</div><div class="ttdoc">析构函数，这里用纯虚函数使该类成为抽象类</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a364003a9b7b601f385861108a4e3273e"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a364003a9b7b601f385861108a4e3273e">sw::TextBoxBase::GetText</a></div><div class="ttdeci">virtual std::wstring &amp; GetText() override</div><div class="ttdoc">获取窗口文本</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a3a6843f34013ed31f3828263f0984233"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a3a6843f34013ed31f3828263f0984233">sw::TextBoxBase::InitTextBoxBase</a></div><div class="ttdeci">void InitTextBoxBase(DWORD dwStyle, DWORD dwExStyle)</div><div class="ttdoc">初始化控件</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a63ae3c3e273a7a69d0f7ca07b102f64b"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a63ae3c3e273a7a69d0f7ca07b102f64b">sw::TextBoxBase::CanUndo</a></div><div class="ttdeci">const ReadOnlyProperty&lt; bool &gt; CanUndo</div><div class="ttdoc">是否可以撤销</div><div class="ttdef"><b>Definition</b> TextBoxBase.h:37</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a67d628d8d0d746292ef4350ad1a5a84a"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a67d628d8d0d746292ef4350ad1a5a84a">sw::TextBoxBase::TextBoxBase</a></div><div class="ttdeci">TextBoxBase()</div><div class="ttdoc">初始化TextBoxBase</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a77e44c645068eb384a5e77765fdccbae"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a77e44c645068eb384a5e77765fdccbae">sw::TextBoxBase::ReadOnly</a></div><div class="ttdeci">const Property&lt; bool &gt; ReadOnly</div><div class="ttdoc">是否只读</div><div class="ttdef"><b>Definition</b> TextBoxBase.h:27</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a7c7ccda9b5161642d002a88cab7da1c3"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a7c7ccda9b5161642d002a88cab7da1c3">sw::TextBoxBase::Undo</a></div><div class="ttdeci">bool Undo()</div><div class="ttdoc">撤销</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a83561e8ffe232f84c13dc14c941600f6"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a83561e8ffe232f84c13dc14c941600f6">sw::TextBoxBase::OnKeyDown</a></div><div class="ttdeci">virtual bool OnKeyDown(VirtualKey key, KeyFlags flags) override</div><div class="ttdoc">接收到WM_KEYDOWN时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a89b507ceef32d379c93a60b5989b74fe"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a89b507ceef32d379c93a60b5989b74fe">sw::TextBoxBase::OnDrawFocusRect</a></div><div class="ttdeci">virtual void OnDrawFocusRect() override</div><div class="ttdoc">绘制虚线框时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a9100aef79b476bac6f50933c7d73d5ee"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a9100aef79b476bac6f50933c7d73d5ee">sw::TextBoxBase::Clear</a></div><div class="ttdeci">void Clear()</div><div class="ttdoc">清空内容</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_a91bad54640a2bdd486232d3836611608"><div class="ttname"><a href="classsw_1_1_text_box_base.html#a91bad54640a2bdd486232d3836611608">sw::TextBoxBase::AcceptTab</a></div><div class="ttdeci">const Property&lt; bool &gt; AcceptTab</div><div class="ttdoc">是否允许输入制表符</div><div class="ttdef"><b>Definition</b> TextBoxBase.h:42</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_aa1e5c56604dd112fb3f116d12c1603d4"><div class="ttname"><a href="classsw_1_1_text_box_base.html#aa1e5c56604dd112fb3f116d12c1603d4">sw::TextBoxBase::SelectAll</a></div><div class="ttdeci">void SelectAll()</div><div class="ttdoc">选中所有文本</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_aa22188dc026379eb3e76a2415b8bf0c9"><div class="ttname"><a href="classsw_1_1_text_box_base.html#aa22188dc026379eb3e76a2415b8bf0c9">sw::TextBoxBase::Select</a></div><div class="ttdeci">void Select(int start, int length)</div><div class="ttdoc">选择指定文本内容</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_aa88527cddd82fc158e0ac3ca662604c1"><div class="ttname"><a href="classsw_1_1_text_box_base.html#aa88527cddd82fc158e0ac3ca662604c1">sw::TextBoxBase::OnChar</a></div><div class="ttdeci">virtual bool OnChar(wchar_t ch, KeyFlags flags) override</div><div class="ttdoc">接收到WM_CHAR时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_text_box_base_html_abaa4c52632b7a8d2bdb41341fc1ab0e8"><div class="ttname"><a href="classsw_1_1_text_box_base.html#abaa4c52632b7a8d2bdb41341fc1ab0e8">sw::TextBoxBase::HorizontalContentAlignment</a></div><div class="ttdeci">const Property&lt; sw::HorizontalAlignment &gt; HorizontalContentAlignment</div><div class="ttdoc">文本的水平对齐方式，可设为左对齐、中心对齐、右对齐</div><div class="ttdef"><b>Definition</b> TextBoxBase.h:32</div></div>
<div class="ttc" id="astructsw_1_1_key_flags_html"><div class="ttname"><a href="structsw_1_1_key_flags.html">sw::KeyFlags</a></div><div class="ttdoc">https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags</div><div class="ttdef"><b>Definition</b> Keys.h:11</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_01fcd3835fb4e7d9331b722d86291b65.html">sw</a></li><li class="navelem"><a class="el" href="dir_ed5f6ece24ffcc4307a76d27c2494db3.html">inc</a></li><li class="navelem"><b>TextBoxBase.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
